export default [
  {
    path: '/',
    redirect: '/index'
  },
  {
    path: '/index',
    name: 'index',
    component: () => import('../../views/home/index.vue'),
    meta: {
      title: '首页',
      requireAuth: true,
      affix: true,
      closable: false
    },
    children: [
      {
        path: '/index/juniorAgent',
        component: () => import('../../views/menuitem/juniorAgent.vue')
      },
      {
        path: '/index/home',
        component: () => import('../../views/menuitem/home.vue')
      },
      {
        path: '/index/bar',
        component: () => import('../../views/menuitem/bar.vue')
      },
      {
        path: '/index/codePass',
        component: () => import('../../views/menuitem/codePass.vue')
      },
      {
        path: '/index/shopCode',
        component: () => import('../../views/menuitem/shopCode.vue')
      },
      { 
        path: '/index/log',
        component: () => import('../../views/menuitem/log.vue')
      },
      {
        path: '/index/website',
        component: () => import('../../views/website/index.vue')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../../views/login/index.vue'),
    meta: {
      title: '登录页',
      requireAuth: true,
      affix: true,
      closable: false
    }
  }
]
